import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import './assets/css/global.css'
//配置请求头
// import http from './assets/js/request.js'
import http from './assets/js/request.js'

//配置富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

//配置请求根路径 
// axios.defaults.baseURL='http://47.242.138.216'
//
// axios.interceptors.request.use(config => {
//   console.log(config)
//   config.headers.Authorization=window.sessionStorage.getItem('token')
//   //在最后必须返回config
//   return config
// })
Vue.prototype.$http = http;
Vue.use(ElementUI);
Vue.use(VueQuillEditor);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
